package com.baike.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lbs
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_discount")
@ApiModel(value="TbDiscount对象", description="")
public class TbDiscount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "雪花id")
    @TableId
    private Long discountId;

    @ApiModelProperty(value = "拼团课名称")
    private String discountLessonName;

    @ApiModelProperty(value = "拼团课简介")
    private String discountLessonIntroduce;

    @ApiModelProperty(value = "一级分类")
    @TableField("discount_categories_1")
    private Integer discountCategories1;

    @TableField("discount_categories_2")
    @ApiModelProperty(value = "二级分类")
    private Integer discountCategories2;

    @ApiModelProperty(value = "封面图片")
    private String discountLessonImage;

    @ApiModelProperty(value = "教师id")
    private Integer teacherId;

    @ApiModelProperty(value = "课程目标")
    private String discountLessonGoal;

    @ApiModelProperty(value = "标签名称")
    private String discountLessonLabelName;

    @ApiModelProperty(value = "标签id字符串")
    private String discountLessonLabelIds;

    @ApiModelProperty(value = "最低拼团人数")
    private Integer studentsNumber;

    @ApiModelProperty(value = "拼团优惠价")
    private Double discountPrice;

    @ApiModelProperty(value = "课程原价")
    private Double lessonPrice;

    @ApiModelProperty(value = "开团时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date discountStartTime;

    @ApiModelProperty(value = "截至时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date discountEndTime;

    @ApiModelProperty(value = "状态(0.待审核,1.审核通过.2.审核未通过 3.已经结束)")
    private Integer status;


}
